package define;

public class array1 {
    public static void main(String[] args) {
        int [] ages1 = new int[]{12, 24, 36};
        double[] scores1 = new double[]{89.9, 99.5, 59.5, 88};
        System.out.println(ages1);
        System.out.println(scores1);
        //简化写法：
        int [] ages2 = new int[]{12, 24, 36};
        double[] scores2 = new double[]{89.9, 99.5, 59.5, 88};
        //另外写法：
        int ages3[] = new int[]{12, 24, 36};
        double scores3[] = new double[]{89.9, 99.5, 59.5, 88};
    }
}
